package org.hard.model.structure.bridge;

import org.hard.model.structure.adapter.RoundHole;
import org.hard.model.structure.adapter.RoundPeg;
import org.hard.model.structure.adapter.SquarePeg;
import org.hard.model.structure.adapter.SquarePegAdapter;

import java.rmi.Remote;

/**
 *
 * @author: 王林博
 * @date: 2023年02月10日 11:32
 */
public class Application {

    public static void main(String[] args) {
        final Tv tv = new Tv();
        RemoteControl remoteControl = new AdvancedRemoteControl(tv);
        remoteControl.togglePower(); // 启动
        remoteControl.togglePower(); // 关闭
        remoteControl.volumeDown();

        final Radio radio = new Radio();
        AdvancedRemoteControl control = new AdvancedRemoteControl(radio);
        control.mute();
        control.togglePower(); // 启动
        control.togglePower(); // 关闭

    }
}
